package com.waverider.promotion.biz.service;

import java.util.Collection;
import java.util.Date;
import java.util.Set;

public interface ICache<K, V> {

	V put(K key, V value);

	V put(K key, V value, Date expire);

	V put(K key, V value, int TTL);

	V get(K key);

	V remove(K key);

	boolean clear();

	int size();

	boolean containsKey(K key);

	Set<K> keySet();

	Collection<V> values();

	void destory();

}
